import Vue from 'vue'
import VueRouter from 'vue-router'
const Home = () => import('../views/home/Home.vue')
const FileList = () => import('../views/home/childComps/FileListShow.vue')

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
    redirect: '/fileList',
    children: [
      {
        path: '/fileList',
        component: FileList
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
